<!doctype html>
<html>
	<head id="top">
		<meta charset="UTF-8">
		<title>{{title}}</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../../../css/mui.min.css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css" href="../../../css/cmms.css"/>
		<link rel="stylesheet" href="../../../css/doctor/project/common.css" />
		<link rel="stylesheet" href="../../../css/doctor/project/testDetail.css" />
	</head>
	
	<body>
		<div id="test">
			<div class="mui-content gridBox">
			    <div class="projectIntroduce" v-if="msg.introduce">
			    	<p><span></span>项目介绍</p>
			    	<p v-html="msg.introduce"></p>
			    </div>
			    <div class="clinicalValue" v-if="msg.sampleRequire">
			    	<p><span>样本要求</span></p>
			    	<p v-html="msg.sampleRequire"></p>
			    </div>
			    <div class="projectIntroduce" v-if="msg.rvalue">
			    	<p><span></span>参考值</p>
			    	<p v-html="msg.rvalue"></p>
			    </div>
			    <div class="clinicalValue" v-if="msg.content">
			    	<p><span>临床意义</span></p>
			    	<p v-html="msg.content"></p>
			    </div>
			    <div class="projectIntroduce" v-if="msg.resultDeal">
			    	<p><span></span>结果处理</p>
			    	<p v-html="msg.resultDeal"></p>
			    </div>
			    <div class="clinicalValue" v-if="msg.note">
			    	<p><span>注意事项</span></p>
			    	<p v-html="msg.note"></p>
			    </div>
			    <div class="noData" v-show="msg.length<=0">
					<p><img src="../../../img/nodata.png"/></p>
					<p>暂无内容</p>
				</div>
			</div>
		</div>
		<script src="../../../js/mui.min.js"></script>
		<script src="../../../js/vue.js"></script>
		<script src="../../../js/cmms.js?time=333"></script>
		<script>
			var top=new Vue({
				el:'#top',
				data:{
					title:''
				},
				mounted(){
					let url=location.href.split("?")[1];
					this.get(url);
				},
				methods:{
					get:function(url){
						let _this=this;
						if(url){
							let code=url.split("&")[1].split("=")[1];
							let t = decodeURI(decodeURI(code)); 
							_this.title=t;
//							console.log(t);
						}
					}
				}
			});
			var test=new Vue({
				el:'#test',
				data:{
					msg:'',
					id:''
				},
				mounted(){
					let url = location.href.split('?')[1];
					this.getCode(url);
					this.loadPage();
				},
				methods:{
					//获取参数id
					getCode:function(url){
						let _this = this;
						if(url){
							let code = url.split('&')[0].split('=')[1];
							_this.id=code;
							console.log(code);
						}
					},
					//加载后台数据
					loadPage:function(){
						let _this=this;
						AT.muiAjaxDoctor('/common/common/selectItemDetailByCateId','post',{
							id:_this.id
						},
						function(res){
							console.log(res);
							_this.msg = res;
//								console.log(this.message);
						});
					}
				}
			})
		</script>
	</body>

</html>